<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>样式设置</title>
  <style>
    canvas {
      border: 1px solid #999;
    }
  </style>
</head>
<body>
  <canvas id="canvas" width="500" height="500"></canvas>
  <h1>设置基本样式</h1>
  <ul>
  	<li>设置图形填充的颜色</li>
  	<li>设置图形轮廓线条的颜色</li>
  	<li>设置线宽</li>
  </ul>
  
</body>
<script src="./style.js"></script>
</html> 